import request from '@/utils/require'

export const login = data => {
  const sha256 = require('js-sha256').sha256
  data.password = sha256(data.password)

  return request({
    url: '/frame/login',
    method: 'POST',
    data
  })
}
